﻿namespace Framework.Network
{

    public class ReceiveStreamState : StreamState
    {
        public bool isOnReceiveHeader;

        public void PrepareForPacketHeader(long packetHeaderLength)
        {
            isOnReceiveHeader = true;
            Reset(packetHeaderLength);
        }

        public void PrepareForPacket(long packetLength)
        {
            isOnReceiveHeader = false;
            Reset(packetLength);
        }
    }

}